home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _85956509CEE44C08B42F7B737877695B < prev    next >
Encoding:
Text File  |  2004-07-16  |  9.5 KB  |  312 lines

  1. // $TEXTURE1
  2.  
  3. shader()
  4. {
  5.     ShaderQuality(5)
  6.     pass()
  7.     {
  8.         Pixelshader("CarGB_ps20_Inside.psh")
  9.         VertexShader("CarGB_ps20_Inside.vsh")
  10.    
  11.         tmu()
  12.         {
  13.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  14.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  15.             Texture()
  16.             {
  17.                 Mapchannel(0)
  18.                 Image(TEXTURE1)
  19.                 filtering("linear_no_mip")
  20.             }
  21.         }
  22.         tmu()
  23.         {
  24.             Texture()
  25.             {
  26.                 Mapchannel(0)
  27.                 Image(DIRT)
  28.                 filtering("linear_no_mip")
  29.             }
  30.         }
  31.         tmu()
  32.         {
  33.             Texture()
  34.             {
  35.                 Mapchannel(0)
  36.                 Image(NORMALS)
  37.                 filtering("linear_no_mip")
  38.             }
  39.         }        
  40.         !include("__BrokenGlassCubeMap.mtt")                
  41.         TFactor(0.0, 0.0, 0.0, 1.0)
  42.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level        
  43.         BlendFunc("src_alpha", "inv_src_alpha")
  44.     }
  45.     sortweight("depth_sorted")
  46.     Cull("ccw")
  47. }
  48.  
  49. //--------------------------------------
  50. shader()
  51. {
  52.     ShaderQuality(1)
  53.     pass()
  54.     {
  55.         Pixelshader("CarGB_ps11_Inside.psh")
  56.    
  57.         tmu()
  58.         {
  59.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  60.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  61.             Texture()
  62.             {
  63.                 Mapchannel(0)
  64.                 Image(TEXTURE1)
  65.                 filtering("linear_no_mip")
  66.             }
  67.         }
  68.         tmu()
  69.         {
  70.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  71.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  72.             Texture()
  73.             {
  74.                 Mapchannel(0)
  75.                 Image(DIRT)
  76.                 filtering("linear_no_mip")
  77.             }
  78.         }
  79.         tmu()
  80.         {
  81.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  82.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  83.             Texture()
  84.             {
  85.                 Mapchannel(0)
  86.                 Image(BROKEN)
  87.                 filtering("linear_no_mip")
  88.             }
  89.         }        
  90.   
  91.         TFactor(0.0, 0.0, 0.0, 1.0)
  92.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level        
  93.         BlendFunc("src_alpha", "inv_src_alpha")
  94.     }
  95.     sortweight("depth_sorted")
  96.     Cull("ccw")
  97. }
  98.  
  99. //------------------------ GF2
  100.  
  101. shader()
  102. {
  103.     ShaderQuality(4)   // a moze 3?
  104.     pass()
  105.     {
  106.         Lighting()
  107.         tmu()
  108.         {
  109.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  110.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  111.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  112.             Texture()
  113.             {
  114.                 Mapchannel(0)
  115.                 Image(DIRT)
  116.                 filtering("linear_no_mip")
  117.             }
  118.             ColorOp("mul", "diffuse", "tfactor", "tfactor")
  119.             AlphaOp("mul", "texture_a", "diffuse_a", "current")
  120.         }
  121.         tmu()
  122.         {
  123.             ColorOp("mul", "current", "tfactor_a", "current")
  124.             AlphaOp("arg1", "current", "current", "current")
  125.         } 
  126.         TFactor(%daycolor_r, %daycolor_g, %daycolor_b, 0.3)
  127.         colorgen("diffuse", "none", 0,0,0, "user", 0,0,0) // A - dirt level   
  128.         BlendFunc("src_alpha", "inv_src_alpha")
  129.  
  130.         AmbientColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  131.         DiffuseColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  132.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  133.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  134.         SpecularPow(0)                
  135.     }
  136.     pass()
  137.     {
  138.         tmu()
  139.         {
  140.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  141.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  142.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  143.             Texture()
  144.             {
  145.                 Mapchannel(0)
  146.                 Image(TEXTURE1)
  147.                 filtering("linear_no_mip")
  148.             }
  149.             ColorOp("arg1", "texture", "current", "current")
  150.             AlphaOp("arg1", "texture_a", "tfactor_a", "current")            
  151.         }
  152.         //colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level         
  153.         BlendFunc("zero", "inv_src_alpha")
  154.     }
  155.     pass()
  156.     {
  157.         tmu()
  158.         {
  159.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  160.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  161.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  162.             Texture()
  163.             {
  164.                 Mapchannel(0)
  165.                 Image(BROKEN)
  166.                 filtering("linear_no_mip")
  167.             }
  168.             ColorOp("add", "texture", "tfactor_a", "tfactor_a")
  169.             AlphaOp("arg1", "texture", "tfactor", "current")            
  170.         }
  171.         tmu()
  172.         {
  173.             ColorOp("mul", "current", "tfactor", "current")
  174.             AlphaOp("arg1", "current", "tfactor", "current")              
  175.         }            
  176.         TFactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)     
  177.         BlendFunc("src_alpha", "inv_src_alpha")
  178.     }      
  179.     
  180.     sortweight("depth_sorted")
  181.     Cull("ccw")
  182. }
  183.  
  184. shader()
  185. {
  186.     ShaderQuality(1)
  187.     pass()
  188.     {
  189.         Lighting()
  190.         tmu()
  191.         {
  192.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  193.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  194.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  195.             Texture()
  196.             {
  197.                 Mapchannel(0)
  198.                 Image(DIRT)
  199.                 filtering("linear_no_mip")
  200.             }
  201.             ColorOp("mul", "diffuse", "tfactor", "tfactor")
  202.             AlphaOp("mul", "texture_a", "diffuse_a", "current")
  203.         }
  204.         tmu()
  205.         {
  206.  
  207.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  208.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  209.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  210.             Texture()
  211.             {
  212.                 Mapchannel(0)
  213.                 Image(TEXTURE1)
  214.                 filtering("linear_no_mip")
  215.             }
  216.             
  217.             ColorOp("mul", "current", "tfactor_a", "current")
  218.             AlphaOp("add", "texture", "current", "current")
  219.         } 
  220.         TFactor(%daycolor_r, %daycolor_g, %daycolor_b, 0.3)
  221.         colorgen("diffuse", "none", 0,0,0, "user", 0,0,0) // A - dirt level   
  222.         BlendFunc("src_alpha", "inv_src_alpha")
  223.  
  224.         AmbientColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  225.         DiffuseColor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  226.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  227.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  228.         SpecularPow(0)                
  229.     }
  230.     pass()
  231.     {
  232.         tmu()
  233.         {
  234.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  235.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  236.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  237.             Texture()
  238.             {
  239.                 Mapchannel(0)
  240.                 Image(BROKEN)
  241.                 filtering("linear_no_mip")
  242.             }
  243.             ColorOp("add", "texture", "tfactor_a", "tfactor_a")
  244.             AlphaOp("arg1", "texture", "tfactor", "current")            
  245.         }
  246.         tmu()
  247.         {
  248.             ColorOp("mul", "current", "tfactor", "current")
  249.             AlphaOp("arg1", "current", "tfactor", "current")              
  250.         }            
  251.         TFactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)     
  252.         BlendFunc("src_alpha", "inv_src_alpha")
  253.     }    
  254.     sortweight("depth_sorted")
  255.     Cull("ccw")
  256. }
  257.  
  258. //=======================================
  259. shader()
  260. {
  261.     ShaderQuality(0)
  262.     pass()
  263.     {
  264.         tmu()
  265.         {
  266.             ColorOp("add", "tfactor", "tfactor_a", "current")
  267.         }      
  268.         tmu()
  269.         {
  270.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  271.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  272.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  273.             Texture()
  274.             {
  275.                 Mapchannel(0)
  276.                 Image(TEXTURE1)
  277.                 filtering("linear_no_mip")
  278.             }
  279.             ColorOp("mul", "current", "texture", "current")
  280.         }
  281.  
  282.         TFactor(%daycolor_r, %daycolor_g, %daycolor_b, 0.3)
  283.         BlendFunc("src_alpha", "inv_src_alpha")
  284.     }
  285.     pass()
  286.     {
  287.         tmu()
  288.         {
  289.             TexMod("scale", "const", U_TILE, 0, 0, "const", V_TILE, 0, 0)
  290.             TexMod("translate", "const", U_OFFSET, 0, 0, "const", V_OFFSET, 0, 0)
  291.             //TexMod("rotate", "const", 0, 0, 0, "const", 0, 0, 0)                        
  292.             Texture()
  293.             {
  294.                 Mapchannel(0)
  295.                 Image(BROKEN)
  296.                 filtering("linear_no_mip")
  297.             }
  298.             ColorOp("add", "texture", "tfactor_a", "tfactor_a")
  299.             AlphaOp("arg1", "texture", "tfactor", "current")            
  300.         }
  301.         tmu()
  302.         {
  303.             ColorOp("mul", "current", "tfactor", "current")
  304.             AlphaOp("arg1", "current", "tfactor", "current")              
  305.         }            
  306.         TFactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)     
  307.         BlendFunc("src_alpha", "inv_src_alpha")
  308.     }    
  309.     sortweight("depth_sorted")
  310.     Cull("ccw")
  311. }
  312.